<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/mytag.tld" prefix="my" %>
<script type="text/javascript">
    var webroot = "${r"${"}webroot}";
</script>
<h2 class="contentTitle">${toClassName }</h2>
<div class="pageContent">
    <form method="post" action="${alias }/save.do" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone)">
        <div class="pageFormContent nowrap" layoutH="97">
        <#list fields as field>
            <#if !field.isAutoIncrease>
                <dl><dt>${field.toLabelName }:</dt><dd>
                    <#if field.isForeignKey>
                        <select name="${field.name }" class="combox <#if !field.isNull>required</#if>">
                            <option value="">--select--</option>
                        </select>
                    <#else >
                        <input name="${field.name }" class="textInput ${field.dwzType } <#if !field.isNull>required</#if>"/>
                    </#if>
                    <span class="info"></span></dd></dl>
            </#if>
        </#list>
        </div>
        <div class="formBar">
            <ul><li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="formSubmitter">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li></ul>
        </div>
    </form>
</div>